application.onConnect = function(client,name) {
	client.sayHelloWorld=function(str) {
		return "i can say: Hello "+str;
	}

	if(name == "tomf") {
		this.rejectConnection(client, {msg:"服务器拒绝 "+name+"进入。"});
	} else {
		this.acceptConnection(client);
	}
}